﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageCorrect.master" AutoEventWireup="true" CodeFile="ViewDetails.aspx.cs" Inherits="ViewDetails" Title="Untitled Page" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentCustomeControlsPlaceHolder" Runat="Server">
    <asp:GridView ID="grwProducts" runat="server" AutoGenerateColumns="False" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="2" DataSourceID="SqlDataSourceProductDetaisl" ForeColor="Black" 
        GridLines="None" ShowHeader="False" Width="100%">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <table align="center" class="style1">
                    <tr>
                        <td align="center" rowspan="2">
                            <asp:Image ID="Image2" runat="server" Height="100px" 
                                    ImageUrl='<%# Eval("ProductImage") %>' Width="100px" />
                            <br />
                            <br />
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# "FeedBack.aspx?ProductID=" + Eval("ProductID") %>'>FeedBack</asp:HyperLink>
                        </td>
                        <td>
                            Product Name</td>
                        <td>
                                Price</td>
                        <td rowspan="2">
                            <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblProductName" runat="server" Text='<%# Eval("ProductName") %>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="Tan" />
    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
    <EmptyDataTemplate>
        <asp:Image ID="Image1" runat="server" Height="100px" 
                ImageUrl='<%# Eval("ProductImage") %>' Width="100px" />
    </EmptyDataTemplate>
    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
    <HeaderStyle BackColor="Tan" Font-Bold="True" />
    <AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>
    <asp:SqlDataSource ID="SqlDataSourceProductDetaisl" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DHAAConnectionString %>" 
        SelectCommand="SELECT * FROM [Products] WHERE ([ProductID] = @ProductID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ProductID" QueryStringField="ProductID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FooterPlaceHolder" Runat="Server">
</asp:Content>

